// 节流阀
let isThrottled = false

export default function Throttled(callback, time, e) {
  if (!isThrottled) {
    // 执行你的鼠标移动事件处理代码
    isThrottled = true
    setTimeout(() => {
      isThrottled = false
      callback(e)
    }, time) // 100 毫秒内只执行一次处理函数
  }
}
